{extend name="public:base" /}

{block name="breadcrumb"}
<ul class="breadcrumb">
    <li>
        <i class="ace-icon fa fa-home home-icon"></i>
        系统设置
    </li>
    <li><a href="{:url('lists')}">用户管理</a></li>
    <li class="active">用户列表</li>
</ul>
{/block}

{block name="content"}
<div class="page-header">
    <h1>
        您当前操作
        <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            添加系统管理员
        </small>
    </h1>
</div>

<div class="row">
    <div class="col-xs-12">
        <form class="form-horizontal adminform" name="add" method="post" action="{:url('add')}">
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 所属用户组： </label>
                <div class="col-sm-10">
                    <select name="group_id"  class="col-sm-5" required>
                        <option value="">请选择所属用户组</option>
                        {foreach name="auth_group_list" item="v"}
                            <option value="{$v.id}">{$v.title}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 登录用户名：  </label>
                <div class="col-sm-10">
                    <input type="text" name="name" id="name" placeholder="输入登录用户名" class="col-xs-10 col-sm-5" required/>
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>用户名必须是以字母开头，数字、符号组合</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 登录密码：  </label>
                <div class="col-sm-10">
                    <input type="text" name="password" id="password" maxlength="15" minlength="6" placeholder="输入登录密码" class="col-xs-10 col-sm-5" required/>
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>密码必须大于6位，小于15位</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 用户邮箱：  </label>
                <div class="col-sm-10">
                    <input type="email" name="email" id="email" placeholder="输入用户邮箱" class="col-xs-10 col-sm-5" required/>
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>用于密码找回，请认真填写</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 手机号码：  </label>
                <div class="col-sm-10">
                    <input type="number" name="mobile" id="mobile" placeholder="输入手机号码" class="col-xs-10 col-sm-5" required/>
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>只能填写数字</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 用户昵称：  </label>
                <div class="col-sm-10">
                    <input type="text" name="nickname" id="nickname" placeholder="输入用户昵称" class="col-xs-10 col-sm-5" required/>
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>用于发布信息所有人，且在前端显示</span>
                </div>
            </div>
            <div class="space-4"></div>

            <!--<div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 是否审核： </label>
                <div class="col-sm-10" style="padding-top:5px;">
                    <input name="admin_open" id="admin_open" value="1" class="ace ace-switch ace-switch-4 btn-flat" type="checkbox" />
                    <span class="lbl"></span>
                </div>
            </div>
            <div class="space-4"></div>-->

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        保存
                    </button>

                    &nbsp; &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="ace-icon fa fa-undo bigger-110"></i>
                        重置
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}